#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<assert.h>

size_t my_strlen(const char* str)
{
	size_t count = 0;
	assert(str);
	while (*str)
	{
		count++;
		str++;
	}
	return count;
}
int main()
{
	char ch[] = "abcdefgh";
	printf("%zu\n", my_strlen(ch));
	return 0;
}